ns = "arm-monthly-finished-product-reporter!";
function handleAppend2Table() {
	var namePrefix = "bean.armItems[" + (++itemIndex) + "].";
	var datas = [

	{
		"type" : "label",
		"attrs" : {
			"text" : pdt['code']
		}
	}, {
		"type" : "label",
		"attrs" : {
			"text" : pdt['name']
		}
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "text",
		"attrs" : {
			"name" : namePrefix + "dataItems['action'].atomValue",
			"value" : $("#paction").val()
		},
		"className" : "reporter-item-text"
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "text",
		"attrs" : {
			"name" : namePrefix + "dataItems['passed'].atomValue",
			"value" : $("#ppassed").val()
		},
		"className" : "reporter-item-text"
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "text",
		"attrs" : {
			"name" : namePrefix + "dataItems['waster'].atomValue",
			"value" : $("#pwaster").val()
		},
		"className" : "reporter-item-text"
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "text",
		"attrs" : {
			"name" : namePrefix + "dataItems['test'].atomValue",
			"value" : $("#ptest").val()
		},
		"className" : "reporter-item-text"
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "label",
		"attrs" : {
			"text" : 0
		}
	}, {
		"type" : "textarea",
		"attrs" : {
			"name" : namePrefix + "remark",
			"value" : $("#premark").val()
		},
		"className":"reporter-item-remark"
	}, {
		"type" : "hidden",
		"attrs" : {
			"name" : namePrefix + "host.id",
			"value" : pdt['id']
		}
	}, {
		"type" : "img",
		"attrs" : {
			"src" : sbase + "images/removeme.gif"
		},
		"csses" : {
			"cursor" : "hand"
		},
		"events" : {
			"click" : function() {
				if(!confirm("确认删除?"))return;
				$(this).parent().parent().remove();
			}
		}
	} ];

	addDataItem(datas, 'pdtBody');
	cleanPdtForm();

}

function showAddDialog(){
	
}